import {createRouter, createWebHistory, RouterOptions} from "vue-router";


const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('@/layout/index.vue'),
        children: [
            {
                path: '',
                name:'home',
                component: () => import('@/views/home/index.vue'),
            },
            {
                path: 'identify',
                name:'identify',
                component: () => import('@/views/identify/index.vue'),
            },
            {
                path: 'history',
                name:'history',
                component: () => import('@/views/history/index.vue'),
            }
        ]
    },

]

const routerOptions = {
    history: createWebHistory('/web'),
    routes: routes,
}



const router = createRouter(<RouterOptions>routerOptions)
export default router